package com.example.syssoft.dao;

import com.example.syssoft.common.dao.LogicDAO;
import com.example.syssoft.domain.Business;
import com.example.syssoft.domain.Customer;
import com.example.syssoft.domain.Order;
import com.example.syssoft.domain.Shop;

import java.util.List;

public interface OrderDao extends LogicDAO<Order,Long> {

    Order findOrderById(Long orderId);

    List<Order> findOrderByShopAndAndCustomerAndPayState(Shop shop, Customer customer,Integer payState);

    List<Order> findOrderByCustomer(Customer customer);

    List<Order> findOrderByCustomerAndPayState(Customer customer,Integer payState);

    List<Order> findOrderByCustomerAndStateAndPayState(Customer customer,Integer state,Integer payState);

    List<Order> findOrderByShopAndState(Shop shop,Integer state);

    List<Order> findOrderByShopAndStateAndPayState(Shop shop,Integer state,Integer payState);

    List<Order> findOrderByShop(Shop shop);

    List<Order> findOrdersByShop(Shop shop);
}
